package cn.fjsay.java.demo5;

public class Phone {
    private SimCard simCard;

    public void changeSimCard(SimCard newSimCard) {
        simCard = newSimCard;
    }

    public void makeCall() {
        String number = simCard.getNumber();
        System.out.println("手机使用的是移动卡" + simCard.getCorpName() + "电话号码是" + number);
    }
}
